{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">所属水票类型</label>
        <div class="layui-input-block">
            <select name="tcategory_id" lay-verify="required" lay-search="">
                <option value="">所属水票类型</option>
                {if !empty($ticket_category)}
                {foreach name="ticket_category" item="vo"}
                <option value="{$vo.id}">{$vo.name}</option>
                {/foreach}
                {/if}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">数量</label>
        <div class="layui-input-block">
            <input type="number" name="count" lay-verify="required|Number" autocomplete="off" placeholder="数量"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">售卖价格</label>
        <div class="layui-input-block">
            <input type="number" name="price" lay-verify="required|priceNum" autocomplete="off" placeholder="售卖价格"
                   class="layui-input" step="0.01">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商家返现</label>
        <div class="layui-input-block">
            <input type="number" name="rebate" lay-verify="required|priceNum" autocomplete="off" placeholder="商家返现"
                   class="layui-input" step="0.01">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="number" name="sort" lay-verify="required|Number" autocomplete="off" placeholder="排序"
                   class="layui-input">
        </div>
    </div>



    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}